﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;

namespace HelloMinasan.Web.Song.ViewModels
{
    public class SongModels
    {
        [Display(Name = "Song Id")]
        public int SongId { get; set; }

        [Required]
        [Display(Name = "Song Name")]
        public string SongName { get; set; }

        private string _picture = "Images/noPicture.png";
        [Display(Name = "Picture")]
        public string Picture
        {
            get { return _picture;}
            set { _picture = value; }
        }

        [Required]
        [Display(Name = "Song URL")]
        public string SongURL { get; set; }

        [Display(Name = "View")]
        public int View { get; set; }

        [Display(Name = "Like")]
        public int Like { get; set; }

        [Display(Name = "English Lyric")]
        public string EnglishLyric { get; set; }

        [Display(Name = "Grammar")]
        public string Grammar { get; set; }

        [Display(Name = "Owner Account")]
        public string Owner { get; set; }

        [Display(Name = "Posted Date")]
        public DateTime PostedDate { get; set; }

        [Display(Name = "Image File")]
        public HttpPostedFileBase ImageFile { get; set; }

        [Display(Name = "Song File")]
        public HttpPostedFileBase SongFile { get; set; }

        public IEnumerable<SongModels> RelativeSongs
        {
            get
            {
                return null;
            }
        }
    }
}